package com.lipy.tools.entitymapping;

/**
 * @Description TODO
 * @Date 2020/11/26 9:17
 * @Author by lipye
 */
public class Person {
    private String name;
    public Person(Person.Builder builder){
        this.name = builder.name;
    }
    public static Person.Builder builder(){
        return new Person.Builder();
    }
    public static class Builder{
        private String name;
        public Builder name(String name){
            this.name = name;
            return this;
        }
        public Person create(){
            return new Person(this);
        }
    }

    public String getName() {
        return name;
    }
}
